package com.pig4cloud.pig.item.api.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 *
 * @author pig code generator
 * @date 2020-10-13 10:09:07
 */
@Data
@TableName("item")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "")
public class Item extends Model<Item> {
    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value="商品id")
    private Integer id;
    /**
     * 商品名称
     */
    @ApiModelProperty(value="商品名称")
    private String name;
    /**
     * 商品价格
     */
    @ApiModelProperty(value="商品价格")
    private BigDecimal price;
    /**
     * 商品状态
     */
    @ApiModelProperty(value="商品状态")
    private String status;
    /**
     * 副标题
     */
    @ApiModelProperty(value="副标题")
    private String title;
    /**
     * 品牌id
     */
    @ApiModelProperty(value="品牌id")
    private String brandId;
    /**
     * 分类id
     */
    @ApiModelProperty(value="分类id")
    private String oneId;
    private String twoId;
    private String threeId;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime gmtCreate;
    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime gmtModified;
}